package org.text2diagram.ddl.converter.dot;

import org.text2diagram.ddl.domain.Link.LinkDirection;

public enum EdgeDir {
	
	FORWARD, BACK, BOTH, NONE;
	
	public static EdgeDir convert(LinkDirection direction) {
		switch (direction) {
			case DIRECT: return FORWARD;
			case REVERSE: return BACK;
			case BIDIRECT: return BOTH;
			case NONE: return NONE;
		}
		return null;
	}
}
